<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: InvDatabase Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_inv_database.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_inv_database-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">InvDatabase Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for InvDatabase:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_inv_database.png" usemap="#InvDatabase_map" alt=""/>
  <map id="InvDatabase_map" name="InvDatabase_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:af7868fee7a49f9cd56b3ece40f3cb780"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_inv_base_item.html">InvBaseItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#af7868fee7a49f9cd56b3ece40f3cb780">FindByID</a> (int id32)</td></tr>
<tr class="memdesc:af7868fee7a49f9cd56b3ece40f3cb780"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the specified item given its full 32-bit ID (not to be confused with individual 16-bit item IDs).  <a href="#af7868fee7a49f9cd56b3ece40f3cb780">More...</a><br /></td></tr>
<tr class="separator:af7868fee7a49f9cd56b3ece40f3cb780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01e5d929d141708f2da79c569934820c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_inv_base_item.html">InvBaseItem</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#a01e5d929d141708f2da79c569934820c">FindByName</a> (string exact)</td></tr>
<tr class="memdesc:a01e5d929d141708f2da79c569934820c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the item with the specified name.  <a href="#a01e5d929d141708f2da79c569934820c">More...</a><br /></td></tr>
<tr class="separator:a01e5d929d141708f2da79c569934820c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a565b442f2b49abf6aaf0f81524060060"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#a565b442f2b49abf6aaf0f81524060060">FindItemID</a> (<a class="el" href="class_inv_base_item.html">InvBaseItem</a> item)</td></tr>
<tr class="memdesc:a565b442f2b49abf6aaf0f81524060060"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the full 32-bit ID of the specified item. Use this to get a list of items on the character that can get saved out to an external database or file.  <a href="#a565b442f2b49abf6aaf0f81524060060">More...</a><br /></td></tr>
<tr class="separator:a565b442f2b49abf6aaf0f81524060060"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aacf09495ebfdfd924a2822978ac1b889"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#aacf09495ebfdfd924a2822978ac1b889">databaseID</a> = 0</td></tr>
<tr class="memdesc:aacf09495ebfdfd924a2822978ac1b889"><td class="mdescLeft">&#160;</td><td class="mdescRight">Each database should have a unique 16-bit ID. When the items are saved, database IDs get combined with item IDs to create 32-bit IDs containing both values.  <a href="#aacf09495ebfdfd924a2822978ac1b889">More...</a><br /></td></tr>
<tr class="separator:aacf09495ebfdfd924a2822978ac1b889"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d7c659119b09e06a345b9ee2a77a12c"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_inv_base_item.html">InvBaseItem</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#a1d7c659119b09e06a345b9ee2a77a12c">items</a> = new List&lt;<a class="el" href="class_inv_base_item.html">InvBaseItem</a>&gt;()</td></tr>
<tr class="memdesc:a1d7c659119b09e06a345b9ee2a77a12c"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of items in this database.  <a href="#a1d7c659119b09e06a345b9ee2a77a12c">More...</a><br /></td></tr>
<tr class="separator:a1d7c659119b09e06a345b9ee2a77a12c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac91d85d3b5a4ce11e0c06f79532515b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_atlas.html">UIAtlas</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#ac91d85d3b5a4ce11e0c06f79532515b2">iconAtlas</a></td></tr>
<tr class="memdesc:ac91d85d3b5a4ce11e0c06f79532515b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">UI atlas used for icons.  <a href="#ac91d85d3b5a4ce11e0c06f79532515b2">More...</a><br /></td></tr>
<tr class="separator:ac91d85d3b5a4ce11e0c06f79532515b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a5cac120808f73426ae0c042d266df286"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_inv_database.html">InvDatabase</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_inv_database.html#a5cac120808f73426ae0c042d266df286">list</a><code> [get]</code></td></tr>
<tr class="memdesc:a5cac120808f73426ae0c042d266df286"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the list of item databases, finding all instances if necessary.  <a href="#a5cac120808f73426ae0c042d266df286">More...</a><br /></td></tr>
<tr class="separator:a5cac120808f73426ae0c042d266df286"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af7868fee7a49f9cd56b3ece40f3cb780"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_inv_base_item.html">InvBaseItem</a> InvDatabase.FindByID </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id32</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find the specified item given its full 32-bit ID (not to be confused with individual 16-bit item IDs). </p>

</div>
</div>
<a class="anchor" id="a01e5d929d141708f2da79c569934820c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_inv_base_item.html">InvBaseItem</a> InvDatabase.FindByName </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>exact</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find the item with the specified name. </p>

</div>
</div>
<a class="anchor" id="a565b442f2b49abf6aaf0f81524060060"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int InvDatabase.FindItemID </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_inv_base_item.html">InvBaseItem</a>&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the full 32-bit ID of the specified item. Use this to get a list of items on the character that can get saved out to an external database or file. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aacf09495ebfdfd924a2822978ac1b889"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int InvDatabase.databaseID = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Each database should have a unique 16-bit ID. When the items are saved, database IDs get combined with item IDs to create 32-bit IDs containing both values. </p>

</div>
</div>
<a class="anchor" id="ac91d85d3b5a4ce11e0c06f79532515b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_atlas.html">UIAtlas</a> InvDatabase.iconAtlas</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>UI atlas used for icons. </p>

</div>
</div>
<a class="anchor" id="a1d7c659119b09e06a345b9ee2a77a12c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_inv_base_item.html">InvBaseItem</a>&gt; InvDatabase.items = new List&lt;<a class="el" href="class_inv_base_item.html">InvBaseItem</a>&gt;()</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>List of items in this database. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a5cac120808f73426ae0c042d266df286"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_inv_database.html">InvDatabase</a> [] InvDatabase.list</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieves the list of item databases, finding all instances if necessary. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Examples/Scripts/InventorySystem/System/InvDatabase.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_inv_database.html">InvDatabase</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:27 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
